package com.example.hotelsystem.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author Lee
 * @since 2020-10-20
 */
@Data
@ApiModel(value="Hotelorder对象", description="")
public class Hotelorder implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "订单id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "房间id")
    private Long roomId;

    @ApiModelProperty(value = "预订人id")
    private Long userId;

    @ApiModelProperty(value = "入住时间")
    private Date checkinTime;

    @ApiModelProperty(value = "退房时间")
    private Date checkoutTime;

    @ApiModelProperty(value = "订单价格")
    private Double price;

    @ApiModelProperty(value = "状态(0:未付款，1:已付款)")
    private Integer status;

    @ApiModelProperty(value = "支付时间")
    private Date payTime;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableLogic
    @ApiModelProperty(value = "逻辑删除")
    private Integer deleted;

    @Version
    @ApiModelProperty(value = "乐观锁")
    private Integer version;

    @ApiModelProperty(value = "房间号码")
    @TableField(exist = false)
    private Long roomNumber;

    @ApiModelProperty(value = "酒店名称")
    @TableField(exist = false)
    private String hotelName;

    @ApiModelProperty(value = "楼层名称")
    @TableField(exist = false)
    private String floorName;

    @ApiModelProperty(value = "城市名称")
    @TableField(exist = false)
    private String cityName;

    @ApiModelProperty(value = "房间类型名称")
    @TableField(exist = false)
    private String roomTypeName;

    @ApiModelProperty(value = "用户名称")
    @TableField(exist = false)
    private String userName;

    @ApiModelProperty(value = "用户身份证号码")
    @TableField(exist = false)
    private String idcard;

    @ApiModelProperty(value = "图片listr")
    @TableField(exist = false)
    List<String> imageList;

}
